"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Example1;

var _index = _interopRequireDefault(require("../../index"));

var _react = _interopRequireDefault(require("react"));

var _button = _interopRequireDefault(require("../../../button"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function Example1() {
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, {
    type: "primary",
    onClick: function onClick() {
      return _index.default.info({
        content: '1s后关闭',
        duration: 1000
      });
    }
  }, "duration=1000"), /*#__PURE__*/_react.default.createElement(_button.default, {
    type: "primary",
    onClick: function onClick() {
      var _Toast$info = _index.default.info({
        content: '一直显示，不关闭',
        duration: 0
      }),
          destroy = _Toast$info.destroy;
    }
  }, "\u4E00\u76F4\u663E\u793A\uFF0C\u4E0D\u5173\u95ED"), /*#__PURE__*/_react.default.createElement(_button.default, {
    type: "primary",
    onClick: function onClick() {
      var _Toast$info2 = _index.default.info({
        content: '一直显示，点击才关闭',
        duration: 0,
        hasMask: true,
        onMaskClick: function onMaskClick() {
          console.log('onMaskClick');

          _index.default.hide();
        }
      }),
          destroy = _Toast$info2.destroy;
    }
  }, "\u4E00\u76F4\u663E\u793A\uFF0C\u70B9\u51FB\u624D\u5173\u95ED"));
}